-- GENERATED SPELL FOR [Alterac Ram] --


function spell0_10990(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10990', 611, 1)
end

function spell1_10990(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10990', 15000, 1)
end

function Sorts_10990(pUnit, Event)
local choix_sorts_10990 = math.random(0, 1)
if choix_sorts_10990 == 0 then
pUnit:RegisterEvent('spell0_10990', 1, 1)
end
if choix_sorts_10990 == 1 then
pUnit:RegisterEvent('spell1_10990', 1, 1)
end
end

function mob10990_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10990', math.random(1500, 3000), 1)
end

function mob10990_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10990_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10990_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10990, 1, 'mob10990_Action')
RegisterUnitEvent(10990, 2, 'mob10990_Leave')
RegisterUnitEvent(10990, 3, 'mob10990_Kill')
RegisterUnitEvent(10990, 4, 'mob10990_Die')
